home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / workbench / explorer / install_explorer < prev    next >
Text File  |  2000-03-11  |  24KB  |  618 lines

  1. ; Installer script for the Diz-Explorer program
  2. ;******************************************************************************
  3. ;     _  _      ____
  4. ;    / \/ \    /___ |   
  5. ;   / /\/\ \     _ ||
  6. ;  / / /\ \ \   |_|||
  7. ; / / /  \ \ \ ____||
  8. ;/_/ /_/\_\ \_\\____|
  9. ;
  10. ; $VER: 3.00_Diz-Explorer_Installer (Nov-24-1997) 
  11. ; If you wish to use any part of this installer you must ask us.
  12. ;
  13. ; Installer    by Jochen Grus & Martin Gentile ©1996-1999 
  14. ; Diz-Explorer by Jochen Grus ©1996-2000 
  15. ; Last Update: DEC-26-1998
  16. ;---------------------------------------
  17. ;        This could be your logo! 
  18. ;           __  __      _______ 
  19. ;          /  \/  \    /_____/ \
  20. ;         /  \  /  \  /  \  /  /
  21. ;        /  / \/ \  \/ /\ \/  / 
  22. ;       /  /  /  -\  \ \/ /  /  
  23. ;      /  /  /  __    \__/  /   
  24. ;      \_/  /__/  \_/\_____/    
  25. ;
  26. ;       Explorer Version 5.00
  27. ;
  28. ;          © 1996-2000 by: 
  29. ;
  30. ;   Jochen Grus and Martin Gentile
  31. ;---------------------------------------
  32. ;******************************************************************************
  33. (procedure Explor (set JOH 1) ( (while (< JOH 4444)  (set JOH (+ JOH 1)) )  ) )
  34.  
  35. (procedure InformX
  36. (working (cat "\n\n"
  37.               " LHA  TAR\n"
  38.               " LZX  TGZ\n"
  39.               " DMS  EXE\n"
  40.               " ARJ  SIT\n"
  41.               " ARC  LZH\n"
  42.               " ZOO  RAR\n"
  43.               " ZIP  LZ\n"
  44.               " \n"
  45.          )           
  46. )
  47. )
  48. (procedure InformY
  49. (working (cat "\n\n"
  50.               "\n"
  51.               "\n"
  52.               "Diz-Explorer Pro Version 5.00\n"
  53.               "\n"
  54.               "by\n"
  55.               "\n"
  56.               "   Jochen Grus & Martin Gentile   \n"
  57.               "\n"
  58.          )           
  59. )
  60. )
  61. (InformY)
  62.  
  63. (Explor)(Explor)
  64. (InformX)(Explor)
  65. (InformY)(Explor) (InformX)(Explor)
  66. (InformY)(Explor) (InformX)(Explor)
  67. (InformY)(Explor) (InformX)(Explor)
  68. (InformY)(Explor) (InformX)(Explor)
  69. (InformY)(Explor) (InformX)(Explor)
  70. (InformY)(Explor) (InformX)(Explor)
  71. (InformY)(Explor) (InformX)(Explor)
  72. (InformY)(Explor) (Explor) (Explor)
  73.  
  74. ;*** System Stuff ***
  75. (set cpu (database "cpu"))  (set vblank (database "vblank"))
  76. (set graphmem (database "graphics-mem")) (set totmem (database "total-mem"))
  77. (set osver (/ (getversion "LIBS:version.library") 65536))
  78. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  79. (set fastmem (- totmem graphmem))
  80.  
  81. (if (= osver 37) (set workbench "2.0")) (if (= osver 38) (set workbench "2.1"))
  82. (if (= osver 39) (set workbench "3.0")) (if (= osver 40) (set workbench "3.1"))
  83. (if (= osver 41) (set workbench "3.5"))
  84.  
  85. (set cpu (database "cpu"))
  86. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 1))
  87. (if (= cpu 68020) (set #cpu 2)) (if (= cpu 68030) (set #cpu 3))
  88. (if (= cpu 68040) (set #cpu 4)) 
  89. (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 5) )
  90. (if (> (exists ("sys:libs/ppc.library")) 0) (set #cpu 6) )
  91.  
  92. (if (> cpu 68010)  (set #fpuGuess 0)  (set #fpuGuess 1) )
  93.    
  94. (set vernum1 (getversion "Explorer")) (set ver2 (/ vernum1 65536)) 
  95. (set rev1 (- vernum1 (* ver1 65536) ) ) (set Explorerver (cat ver1 "4.6" rev1))
  96.  
  97. (if (> (exists ("env:Language")) 0) (set lanfound (getenv "Language")) )
  98. (set lan 0)
  99.  
  100. (if (= "english"     lanfound) (set lan 0))
  101. (if (= "deutsch"     lanfound) (set lan 1))
  102. (if (= "italiano"    lanfound) (set lan 2)) 
  103. (if (= "francais"    lanfound) (set lan 3)) 
  104. (if (= "svenska"     lanfound) (set lan 4)) 
  105. (if (= "norsk"       lanfound) (set lan 5)) 
  106. (if (= "nederlands"  lanfound) (set lan 6)) 
  107. (if (= "dansk"       lanfound) (set lan 7)) 
  108.  
  109. (set #English       "English")
  110. (set #Deutsch       "Deutsch")
  111. (set #Italiano     "Italiano")
  112. (set #Francais     "Francais")
  113. (set #Svenska       "Svenska")
  114. (set #Norsk           "Norsk")
  115. (set #Nederlands "Nederlands")
  116. (set #Dansk           "Dansk")
  117.  
  118. (set mfound 0) (set newicon1 1) 
  119. (set keeper 1) (set firsttime 0)
  120.  
  121. ;***********************************************************************
  122. ; The English Installation Strings for the Diz-Explorer
  123. ;***********************************************************************
  124. (set #about (cat "\n\n\n\nWelcome to the Diz-Explorer PRO Version " Explorerver "\n\n\nCopyright © 1996-2000 by\n\nJochen Grus & Martin Gentile\n") )
  125. (set #about2 (cat "\n\n\n\n Contact:\n\n Jochen.Grus@rhein-main.net \n\n or\n\n Martin.Gentile@wiesbaden.netsurf.de\n\n\n\n") )
  126. (set #about3 (cat "\n\n\n\n Updates & Stuff at:\n\n www.nextron.ch/~force/\n\n or\n\nhttp://www.geocities.com/SiliconValley/Grid/8661/") )
  127. (set #aboutpacker (cat "\n\n\n\nNow you should copy all packers to the >C< directory. Before the installation you should check the versions! ") )
  128. (set #aboutdevices (cat "\n\n\n\nNow you should copy all devices to the >DEVS< directory. Before the installation you should check the versions! ") )
  129. (set #aboutlhacheck (cat "\n\n\n\n                - W A R N I N G -               Installation found the following file in the C-directory: LHACHECK. You should delete this file because it has the BBS-Trojan VIRUS!!! ") )
  130. (set #aboutdatatype1 (cat "\n\n\n\n- W A R N I N G -\n\n Installation found Datatypes.library in Libs:\n\n V45.4. or higher!  If the size of this file is 32748 (Normal 27kb) bytes you should know that this one a VIRUS!") )
  131. (set #askcpu "\nThe installer has found the following CPU:\n")
  132. (set #askcpu2 "\nThe installer program has found a CPU. The installer should show correctly what kind of cpu is installed...\n")
  133. (set #whereExplorer "Where do you wish to install the Diz-Explorer. A directory called 'Explorer' will be created if one is not there. If a copy of Explorer is found it will be backed up.")
  134. (set #filethere1 "\n\nThe installer has found an Explorer version ")
  135. (set #filethere2 " at ")
  136. (set #filethere3 "\n\nThe file will be renamed to ")
  137. (set #filethere4 " and it will then be moved to ")
  138. (set #backuptoXXX "Back-UP to file named 'Diz-Explorer.")
  139. (set #copyover "Copy Over Old Version")
  140. (set #oktodelete1 "\nIs it ok to delete the older Diz-Explorer binary so that the Explorer Directory can be made?\n")
  141. (set #oktodelete2 "\nIs it ok to delete the older _renamed_ Explorer binary so that the Explorer Directory can be made?\n")
  142. (set #Explorerfound "\nThe Installer has found a copy of Explorer already installed. What do you want to do?\n")
  143. (set #newicon "\nDo you wish to copy over The Diz-Explorer Icon from the archive? If you have any ToolTypes already set you should select no.\n")
  144. (set #nonewicon  "No  - ToolTypes already set.")
  145. (set #yesnewicon "Yes - Copy over the old DIZ-Explorer Icon.")
  146. (set #whatcat "\nSelect the Explorer Language catalog you wish to install.\n")
  147. (set #wherecat "\nWhere do you wish to install the Explorer Language Catalog? There is no need for it yet. Default is ")
  148. (set #catnofind "Can not find this catalog in this Explorer archive. No need for it yet.")
  149. (set #whatdocs "\nWhat Explorer documentation would you like to install?\n")
  150. (set #wheredocs "Where would you like the Explorer documentation you selected to be installed?")
  151. (set #byebye (cat "\nDiz-Explorer Install Complete!\n\n" ))
  152. (set #setup_help
  153.         (cat
  154.             "Explorer needs an Assign in main directory to "
  155.             "properly setup. If you skip this pass you MUST "
  156.             "manually enter it later in your User-StartUp or "
  157.             "in a shell prior to run Explorer."
  158.         )
  159.     )
  160.  
  161.  
  162.  
  163. ;***********************************************************************
  164. ; The German Installation Strings for the Diz-Explorer
  165. ;***********************************************************************
  166.  
  167. (if (= lan 1)
  168. (
  169.  (set po 1)
  170.  
  171. (set #about (cat "\n\n\n\nWillkommen zum DIZ-Explorer PRO Version " Explorerver "\n\n\nCopyright © 1996-2000 by\n\nJochen Grus & Martin Gentile\n") )
  172. (set #about2 (cat "\n\n\n\n Kontakt:\n\n Jochen.Grus@rhein-main.net \n\n or\n\n Martin.Gentile@wiesbaden.netsurf.de\n\n\n\n") )
  173. (set #about3 (cat "\n\n\n\n Updates & Stuff at:\n\n www.nextron.ch/~force/\n\n or\n\nhttp://www.geocities.com/SiliconValley/Grid/8661/") )
  174. (set #aboutpacker (cat "\n\n\n\nJetzt sollten Sie alle Packer in das >C< Verzeichnis installieren. Man sollte vorher die Versionen überprüfen! Es sind aber alle aktuellen Packer hier vorhanden! ") )
  175. (set #aboutdevices (cat "\n\n\n\nJetzt sollten Sie alle Devices in das >Devs< Verzeichnis installieren. Man sollte vorher die Versionen überprüfen! Es sind aber alle aktuellen Devices hier vorhanden! ") )
  176. (set #aboutlhacheck (cat "\n\n\n\n                - W A R N U N G -                                                                     Installation hat folgende Datei im C-Verzeichnis gefunden: LHACHECK. Sie sollten diese Datei entfernen, da es den VIRUS BBS-Trojan enthält!!! ") )
  177. (set #aboutdatatype1 (cat "\n\n\n\n- W A R N U N G -\n\n Installation hat folgende Datei im LIBS-Verzeichnis gefunden: DataTypes.library Version 45.4. Sie sollten diese Datei nach einen Virus überprüfen, wenn die Dateigröße 32748 bytes hat würde ich sie sofort löschen! ") )
  178. (set #askcpu "\nFolgender Prozessor wurde vom Installer erkannt:\n")
  179. (set #askcpu2 "\nDer Installer hat einen Prozessor gefunden. Es müßte den richtigen Typ korrekt erkannt haben! \n")
  180. (set #whereExplorer "Wohin wollen Sie den DIZ-Explorer installieren ? Ein Verzeichnis 'Explorer' wird erzeugt, wenn es nicht existiert. Wenn bereits eine Explorer Version vorhanden ist, kann diese gesichert werden.")
  181. (set #filethere1 "\n\nDas Installationsprogramm hat eine Explorer Version gefunden")
  182. (set #filethere2 " at ")
  183. (set #filethere3 "\n\nDie Datei wird umbenannt in ")
  184. (set #filethere4 " und wird dann verschoben nach ")
  185. (set #backuptoXXX "sichern als Datei 'Diz-Explorer.")
  186. (set #copyover "alte Version überschreiben")
  187. (set #oktodelete1 "\nSind Sie damit einverstanden, daß das alte Diz-Explorer Hauptprogramm gelöscht, so daß das Explorer Verzeichnis erstellt werden kann?\n")
  188. (set #oktodelete2 "\nSind Sie damit einverstanden, daß das alte _umbenannte_ Explorer Hauptprogramm gelöscht wird, so daß das Explorer Verzeichnis erstellt werden kann?\n")
  189. (set #Explorerfound "\nDas Installationsprogramm hat bereits eine installierte Explorer Version gefunden. Was wollen Sie tun?\n")
  190. (set #newicon "\nWollen Sie das Diz-Explorer Piktogramm aus dem Archiv übernehmen? Wenn Sie bereits die Programmmerkmale verändert haben, wählen Sie bitte Nein.\n")
  191. (set #nonewicon  "Nein  - Programmmerkmale verändert.")
  192. (set #yesnewicon "Ja - Überschreibe das alte DIZ-Explorer Icon.")
  193. (set #whatcat "\nWählen Sie die Sprache, die installiert werden soll.\n")
  194. (set #wherecat "\nWohin wollen Sie die Explorer Sprachdatei installieren? Wird noch nicht gebraucht. Eingestellt ist ")
  195. (set #catnofind "Ich kann die passende Sprachdatei im Archiv nicht finden. Wird noch nicht gebraucht.")
  196. (set #whatdocs "\nWelche Anleitung zum Explorer wollen Sie installieren ?\n")
  197. (set #wheredocs "Wohin wollen Sie die gewählte Anleitung kopieren?")
  198. (set #byebye (cat "\nDie DIZ-Explorer Installation wurde erfolgreich abgeschlossen!""\n\nViel Spaß beim Entdizzen...\n\n" ))
  199. (set #setup_help
  200.         (cat
  201.             "Der Explorer braucht ein Assign um richtig arbeiten "
  202.             "zu können. Wenn Sie jetzt abbrechen müssen Sie später "
  203.             "diese Einträge manuell in der User-StartUp vornehmen "
  204.             "oder im Shell ein Assign herstellen um mit dem Explorer "
  205.                         "arbeiten zu können. "
  206.         )
  207.     )
  208.  
  209. ;***********************************************************************
  210. ; The Italiano Installation Strings for the Diz-Explorer
  211. ;***********************************************************************
  212. ;(set #setup1
  213. ;    (cat
  214. ;        "Per preparare l'ambiente del Explorer DEVO modificare la tua "
  215. ;        "User-StartUp aggiungendo i seguenti comandi:\n\n"
  216. ;    )
  217. ;)
  218. ;
  219. ;(set #setup2    "Se salti questo passo DOVRAI inserirli manualmente più tardi.")
  220. ;
  221. ;(set #setup_help
  222. ;    (cat
  223. ;        "Explorer necessita di un assegnamento alla sua directory "
  224. ;        "principale al fine di funzionare correttamente. Se "
  225. ;        "salti questo passo DOVRAI inserirlo manualmente nella "
  226. ;        "tua User-StartUp o in una shell prima di eseguire il Explorer."
  227. ;    )
  228. ;)
  229. ;
  230. ;Please make your own Strings for the installation...  Si! I will do it!
  231. ;
  232. ;and send it to me...
  233. ;
  234. ;***********************************************************************
  235. ; The Francais Installation Strings for the Diz-Explorer
  236. ;***********************************************************************
  237. ;
  238. ;Please make your own Strings for the installation..  Qui! je vais le faire!
  239. ;
  240. ;and send it to me...
  241. ;
  242. ;***********************************************************************
  243. ; The Svenska Installation Strings for the Diz-Explorer
  244. ;***********************************************************************
  245. ;
  246. ;Please make your own Strings for the installation...  Yo! I will do it!
  247. ;
  248. ;and send it to me...
  249. ;
  250. ;***********************************************************************
  251. ; The Norsk Installation Strings for the Diz-Explorer
  252. ;***********************************************************************
  253. ;
  254. ;Please make your own Strings for the installation...  Yo! I will do it!
  255. ;
  256. ;and send it to me...
  257. ;
  258. ;***********************************************************************
  259. ; The Nederlands Installation Strings for the Diz-Explorer
  260. ;***********************************************************************
  261. ;
  262. ;Please make your own Strings for the installation...  Yo! Ick do dat!
  263. ;
  264. ;and send it to me...
  265. ;
  266. ;***********************************************************************
  267. ; The Dansk Installation Strings for the Diz-Explorer
  268. ;***********************************************************************
  269. ;
  270. ;Please make your own Strings for the installation...  Yo! I will do it!
  271. ;
  272. ;and send it to me...
  273. ;
  274.  
  275. )
  276. )
  277.  
  278. ;***********************************************************************
  279. ; Tach Mädelz and Jungz !
  280. ;***********************************************************************
  281. (message #about)
  282. (welcome) 
  283. (message #about2)
  284. (welcome) 
  285. (message #about3)
  286. (welcome) 
  287. ;********************************************************************
  288. ; Checking the CPU - Hello CPU are you there???
  289. ;********************************************************************
  290.   (set cpu (database "cpu"))
  291. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 0))
  292. (if (= cpu 68020) (set #cpu 0)) (if (= cpu 68030) (set #cpu 0))
  293. (if (= cpu 68040) (set #cpu 1)) (if (= cpu 68060) (set #cpu 1)) 
  294. (if (= @installer-version 0)
  295.   (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 1) )
  296.   (if (= cpu 68060) (set #cpu 1))
  297.   (if (> (exists ("sys:libs/ppc.library")) 0) (set #cpu 2) )
  298.   (if (= cpu 68060) (set #cpu 1))
  299. )
  300.  
  301. (set cpuPick (askchoice (choices "68020 or 68030" "68040 or 68060" "PC603 or PC604")
  302.             (prompt #askcpu)
  303.                     (help   #askcpu2)
  304.                   (default #cpu)
  305.       )
  306. )
  307.  
  308. (if (= cpuPick 0) (set cpuadd ".020")) (if (= cpuPick 1) (set cpuadd ".040")) (if (= cpuPick 2) (set cpuadd ".ppc"))
  309.  
  310. ;***********************************************************************
  311. ; Ask where to put the DIZ-EXPLORER & Make a new directory if needed
  312. ;***********************************************************************
  313. (set Explorerdir  (askdir (prompt #whereExplorer)
  314.                 (help   #whereExplorer)
  315.                      (default "SYS:")
  316.                )  
  317. )
  318.  
  319. (set where Explorerdir)
  320.  
  321. ;***********************************************************************
  322. ; Check to see if the DIZ-EXPLORER is already there, if so ask to backup
  323. ;***********************************************************************
  324. (if (= 1 (exists (tackon where "Explorer") ) ) 
  325.   (
  326.     (set vernum1 (getversion (tackon where "Explorer") ))
  327.     (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  328.     (set Explorer_old (cat ver1 "." rev1))
  329.  
  330.     (message (cat #filethere1 ver1 "." rev1 #filethere2 where #filethere3 
  331.                   (cat "Explorer" Explorer_old) #filethere4 (tackon Explorerdir "Explorer") )
  332.     )
  333.     
  334.  
  335.     (copyfiles (source (tackon where "Explorer"))
  336.                (dest where) 
  337.                (infos)
  338.                (newname (cat "Explorer." Explorer_old))
  339.     )
  340.     
  341.     (delete (tackon Explorerdir "Explorer") (prompt #oktodelete1) (help #oktodelete1) (confirm) (infos)) 
  342.  
  343.     (if (< (exists (tackon Explorerdir "Explorer")) 2) (makedir (tackon Explorerdir "Explorer") (infos)) )    
  344.  
  345.     (copyfiles (source (tackon where (cat "Explorer." Explorer_old) ))
  346.                        (dest (tackon Explorerdir "Explorer")) 
  347.                        (infos)
  348.                
  349.     )
  350.  
  351.     (delete (tackon where (cat "Explorer" Explorer_old)) (prompt #oktodelete2) (help #oktodelete2) (confirm) (infos) ) 
  352.  
  353.     ;(set firsttime 1)
  354.  
  355.   )
  356. )
  357.  
  358. (if (< (exists (tackon Explorerdir "Explorer")) 2) (makedir (tackon Explorerdir "Explorer") (infos)) )
  359. (set where (tackon Explorerdir "Explorer"))
  360. (set @default-dest where)
  361.  
  362. ;********************************************************************
  363. ; Check for the old one and backup it or not...
  364. ;********************************************************************
  365. (if (exists (tackon where "Explorer")) 
  366.   (
  367.       (set vernum1 (getversion (tackon where "Explorer") ))
  368.       (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  369.       (set Explorer_old (cat ver1 "x." rev1))
  370.  
  371.       (set keeper  (askchoice (choices  (cat #backuptoXXX Explorer_old "'")  #copyover)
  372.                      (prompt #Explorerfound)
  373.                  (help   #Explorerfound)
  374.                      (default 0)
  375.                )
  376.       )    
  377.  
  378.  
  379.       (if (= keeper 0)
  380.          (copyfiles (source (tackon where "Explorer"))
  381.                      (dest where) 
  382.                      (infos)
  383.                      (newname (cat "Explorer" Explorer_old))
  384.          )
  385.       )          
  386.  
  387.       (set firsttime 1)
  388.     
  389.   )
  390. )
  391.  
  392. ;********************************************************************
  393. ; Copy over the old Explorer file and Icon if wanted (Sure!)
  394. ;********************************************************************
  395. (copyfiles (source "Explorer") (dest where) (optional "nofail") )
  396. (copyfiles (source "RAM:EXPLORER/Explorer.key") (dest where)  (optional "nofail") )
  397. (copyfiles (source "RAM:EXPLORER/Explorer.logo") (dest where)  (optional "nofail") )
  398. (copyfiles (source "RAM:EXPLORER/Explorer.prefs") (dest where)  (optional "nofail") )
  399.  
  400. (if (= firsttime 0)  (copyfiles (source "Explorer.info") (dest where) (optional "nofail") ) )
  401.  
  402.  
  403. (if (OR (= keeper 0) (= (exists (tackon where "Explorer.info")) 0))
  404.   (
  405.   
  406.    (set newicon (askchoice (choices #yesnewicon #nonewicon)
  407.                            (prompt #newicon)
  408.                        (help   #newicon)
  409.                            (default 0)
  410.             )
  411.    )
  412.   
  413.    (if (= newicon 0) 
  414.      (copyfiles (source "Explorer.info") (dest where)  (optional "nofail") )
  415.    )
  416.  
  417.   )
  418.  
  419. )
  420.  
  421. ;********************************************************************
  422. ; Select and copy the packers to the C-Directory...     Goil
  423. ;********************************************************************
  424. (message #aboutpacker)
  425.   ((makedir (tackon Explorerdir "Explorer/Extras") (infos) )) 
  426.   ((makedir (tackon Explorerdir "Explorer/HTML") (infos) ) 
  427.  
  428.     (copyfiles
  429.       (prompt "Copying the packers")
  430.       (source "ram:explorer/c")
  431.       (all)
  432.       (dest "c:")
  433.       (confirm)
  434.       (help 
  435.         "This will copy the packers to the >C< directory. "
  436.         "If you copy it to the SYS:c directory, it will not check if there are newer versions! "
  437.         "But normally these are the right versions for you... "
  438.       )
  439.     )
  440. )
  441.  
  442. ;********************************************************************
  443. ; Checking the Directories for viruses - Oh no... 
  444. ;********************************************************************
  445.    (if (exists "c:lhacheck")
  446. (message #aboutlhacheck))
  447. (set dataver (/ (getversion "LIBS:datatypes.library") 65536))
  448. (if (= dataver 45.4) (message #aboutdatatype1))
  449.  
  450. ;********************************************************************
  451. ; Select and copy the devices to the Devs-Directory...   Joh Mann!  
  452. ;********************************************************************
  453. (message #aboutdevices)
  454.  
  455.   (
  456.     (copyfiles
  457.       (prompt "Copying the FMS- and DMS-Device")
  458.       (source "ram:explorer/devs")
  459.       (all)
  460.       (dest "devs:")
  461.       (confirm)
  462.       (help 
  463.         "This will copy the FMS- and the DMS-device to the >DEVS< directory. "
  464.         "If you copy it to the SYS:Devs directory, it will not check if there are newer versions! "
  465.         "But normally these are the right versions for you... "
  466.       )
  467.     )
  468. )
  469.  
  470. ;********************************************************************
  471. ; Ask and copy the documentations if wanted! Do it...
  472. ;********************************************************************
  473. (set docs (askoptions (choices " Explorer.guide" " Explorer_Short.guide" " Example-Amiga.list" " Example-PC.list")
  474.               (prompt #whatdocs)
  475.                       (help #whatdocs)
  476.       )
  477. )
  478.  
  479. (if (<> docs 0)
  480.  (
  481.    (set docsdir (askdir (prompt #wheredocs)
  482.                (help   #wheredocs)
  483.                     (default where)
  484.                 )  
  485.    )
  486.    (copyfiles (source "Ram:Explorer/Extras") (dest (tackon where "Extras")) (all))
  487.    (copyfiles (source "Ram:Explorer/html") (dest (tackon where "HTML")) (all))
  488.    (if (IN docs 0) (copyfiles (source "Explorer.guide") (dest docsdir) (infos) (optional "nofail") ) )
  489.    (if (IN docs 0) (copyfiles (source "Explorer_short.guide") (dest docsdir) (infos) (optional "nofail") ) )
  490.    (run (cat "run SYS:utilities/AmigaGuide ram:explorer/explorer_short.guide") )
  491.  
  492.  )
  493.  
  494. )
  495. ;********************************************************************
  496. ; Modify User-Startup   - Wow! It work`s...
  497. ;********************************************************************
  498. (set #setup1
  499.         (cat "\n\n\nTo get the Explorer work right there has to be made "
  500.         "some changes to your User-Startup !\n\n"
  501.         command1
  502.         )
  503. )
  504.  
  505. (if (= @language "deutsch") (
  506.  
  507. (set #setup1
  508.         (cat "\n\n\nUm mit Explorer richtig arbeiten zu können, muß "
  509.         "eine Änderung an der User-Startup vorgenommen werden.\n\n"
  510.         command1
  511.         )
  512. )
  513. ))
  514. (set #setup2
  515.         (cat
  516.             "If you skip this pass you MUST manually enter "
  517.             "it later."
  518.         )
  519.     )
  520.  
  521. (if (= @language "deutsch") (
  522.  
  523. (set #setup2
  524.         (cat
  525.             "Wenn Sie jetzt abrechen, müßen sie später die Änderung "
  526.             "manuell vornehmen !"
  527.         )
  528.     )
  529. ))
  530.  
  531. (startup "Explorer"
  532.         (prompt
  533.             (cat
  534.                 #setup1
  535.                 "Assign Explorer: \"" @default-dest "\"\n"
  536.                 "Path Explorer: ADD\n\n"
  537.                 #setup2
  538.             )
  539.         )
  540.         (help #setup_help)
  541.         (command
  542.             "Assign Explorer: \"" @default-dest "\"\n"
  543.             "Path Explorer: ADD\n"
  544.         )
  545.     )
  546.  
  547.  
  548. (working "\nDeleteing temporary files.")
  549. (run "Delete RAM:Explorer ALL FORCE QUIET")
  550. (run "Delete RAM:Explorer/c ALL FORCE QUIET")
  551. (run "Delete RAM:Explorer.info ALL FORCE QUIET")
  552.  
  553. (set #endnow (cat "Installation of Explorer completed.\n"
  554.     "When the lines:\n" command1 "\ndoesn`t appear "
  555.     "in your Startup-Sequence or User-Startup, "
  556.     "please do it manually.\n\n"
  557.     "Best wishes...\n\n"
  558.     "Jochen Grus & Martin Gentile"
  559.     ))
  560.  
  561. (if (= @language "deutsch") (
  562.  
  563.     (set #endnow (cat "\nInstallation von Explorer beendet.\n\n"
  564.         "Falls die Zeilen:\n" #setup1 "\nnicht in Ihre Startup-Sequence bzw. "
  565.         "User-Startup eingefügt wurde, dann holen Sie dies bitte nach.\n\n"
  566.         "\n\nWir wünschen ihnen viel Erfolg mit den Explorer!\n\n"
  567.         "Jochen Grus & Martin Gentile"
  568.     ))
  569. ))
  570.  
  571. ;********************************************************************************
  572. ; Ende - Bye - Fin - Finito - Fuck i must go now - see u in the next whisky bar. 
  573. ;********************************************************************************
  574.  
  575. (procedure Explor (set JOH 1) ( (while (< JOH 4444)  (set JOH (+ JOH 1)) )  ) )
  576.  
  577. (procedure InformX
  578. (working (cat "\n\n"
  579.               " LHA  TAR\n"
  580.               " LZX  TGZ\n"
  581.               " DMS  EXE\n"
  582.               " ARJ  SIT\n"
  583.               " ARC  LZH\n"
  584.               " ZOO  RAR\n"
  585.               " ZIP  LZ\n"
  586.               " \n"
  587.          )           
  588. )
  589. )
  590. (procedure InformY
  591. (working (cat "\n\n"
  592.               "\n"
  593.               "\n"
  594.               "Diz-Explorer Pro Version 5.00\n"
  595.               "\n"
  596.               "by\n"
  597.               "\n"
  598.               "   Jochen Grus & Martin Gentile   \n"
  599.               "\n"
  600.          )           
  601. )
  602. )
  603. (InformY)
  604.  
  605. (Explor)(Explor)
  606. (InformX)(Explor)
  607. (InformY)(Explor) (InformX)(Explor)
  608. (InformY)(Explor) (InformX)(Explor)
  609. (InformY)(Explor) (InformX)(Explor)
  610. (InformY)(Explor) (InformX)(Explor)
  611. (InformY)(Explor) (InformX)(Explor)
  612. (InformY)(Explor) (InformX)(Explor)
  613. (InformY)(Explor) (InformX)(Explor)
  614. (InformY)(Explor) (Explor) (Explor)
  615.  
  616. (exit #byebye)
  617.